import { SysDictDataEntity } from './../../entity/sys-dict-data.entity';
import { SysDictEntity } from './../../entity/sys-dict.entity';
import { RoleService } from './role.service';
import { AdminController } from './admin.controller';
import { AuthModule } from '../auth/auth.module';
import { SysStaffEntity } from '../../entity/sys-staff.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Module, forwardRef } from '@nestjs/common';
import { SysPermissionEntity } from 'src/entity/sys-permission.entity';
import { StaffService } from './staff.service';
import { MenuService } from './menu.service';
import { SysRoleEntity } from 'src/entity/sys-role.entity';
import { DictService } from './dict.service';

@Module({
  imports: [TypeOrmModule.forFeature([SysStaffEntity, SysRoleEntity, SysPermissionEntity, SysDictEntity, SysDictDataEntity]), forwardRef(() => AuthModule)],
  controllers: [AdminController],
  providers: [StaffService, MenuService, RoleService, DictService],
  exports: [StaffService]
})
export class AdminModule { }
